<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="../com/include/declare.jspf" %>
<%@ include file="../com/include/session.jspf" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>unicode&lt;-&gt;ascii변환</title>

<SCRIPT LANGUAGE="JavaScript">
<!--
	function fn_converter(){
		document.converterForm.ctype.value	= arguments[0]==1?"escape":"unescape";
		document.converterForm.target	= "ifrm";
		document.converterForm.action	= "<c:url value='/common/unicodeConverter.do'/>";
		document.converterForm.submit();
	}
//-->
</SCRIPT>

</head>
<body style="text-align:center; margin:0 auto; display:inline; padding-top:20px;">

<form id="converterForm" name="converterForm" method="post" onsubmit="return false;" onkeyup="javascript:if(event.keyCode==13){fn_converter();}">
<input type="hidden" name="ctype" value=""/>
<table>
	<tr>
	<td>ASCII</td>
	<td>
	<textarea name='unescapeString' id='unescapeString' cols="80" rows="8"></textarea>
	</td>
	<td><input type="button" value="UNICODE" onclick="javascript:fn_converter(1);"></td>
	</tr>
	<tr>
	<td>UNICODE</td>
	<td>
	<textarea name='escapeString' id='escapeString' cols="80" rows="8"></textarea>
	</td>
	<td><input type="button" value="ASCII" onclick="javascript:fn_converter(2);"></td>
	</tr>

	<tr height='20'><td></td></tr>

	<tr><td bgcolor='#0066FF' align='center' colspan='4'><b><font color='#FFFFFF'>변환 결과</font></b></td></tr>
</table>
</form>

<iframe name="ifrm" width="100%" height="400" frameborder="0"></iframe>

</body>
</html>
